// 自动生成模板SmsSkuFullReduction
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsSkuFullReduction表 结构体  SmsSkuFullReduction
type SmsSkuFullReduction struct {
	Id          *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                   //id
	SkuId       *int     `json:"skuId" form:"skuId" gorm:"comment:spu_id;column:sku_id;size:19;"`                //spu_id
	FullPrice   *float64 `json:"fullPrice" form:"fullPrice" gorm:"comment:满多少;column:full_price;size:18;"`       //满多少
	ReducePrice *float64 `json:"reducePrice" form:"reducePrice" gorm:"comment:减多少;column:reduce_price;size:18;"` //减多少
	AddOther    *bool    `json:"addOther" form:"addOther" gorm:"comment:是否参与其他优惠;column:add_other;"`             //是否参与其他优惠
}

// TableName smsSkuFullReduction表 SmsSkuFullReduction自定义表名 sms_sku_full_reduction
func (SmsSkuFullReduction) TableName() string {
	return "sms_sku_full_reduction"
}

type SmsSkuFullReductionRepo interface {
}

type SmsSkuFullReductionUsecase struct {
	repo SmsSkuFullReductionRepo
	log  *log.Helper
}

func NewSmsSkuFullReductionUsecase(repo GreeterRepo, logger log.Logger) *SmsSkuFullReductionUsecase {
	return &SmsSkuFullReductionUsecase{repo: repo, log: log.NewHelper(logger)}
}
